\version "2.14.0"  % necessary for upgrading to future LilyPond versions.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% PAGE LAYOUT (SATB)

\score {
  <<
    \new ChordNames {
      \set chordChanges = ##t
      \hymnHarmonies
    }
    \new Staff
    <<
      \clef "treble"
      \new Voice = "sop" { \voiceOne \global \aSop }
      \new Voice = "alt" { \voiceTwo \global \aAlt }
    >>

    \verseLayout

    \new Staff
    <<
      \clef "bass"
      \new Voice = "ten" { \voiceOne \global \aTen }
      \new Voice = "bas" { \voiceTwo \global \aBas }
    >>
  >>
}

\layout {
  \context { \Staff
 %% \remove "Time_signature_engraver" %% option for hymns that do not
                                      %% require a time signature
      \override StaffSymbol #'width = #(lambda (grob)
        (ly:output-def-lookup (ly:grob-layout grob) 'line-width))
  }
  \context { \Score
    \remove "Bar_number_engraver"
    \override SpacingSpanner
      #'base-shortest-duration = #(ly:make-moment 1 16)
    %\override Rest #'transparent = ##t
  }
  \context { \Lyrics
    \consists "Separating_line_group_engraver"
    \override BarLine #'transparent = ##t
    \override LyricText #'font-family = #'normal
    \override LyricText #'font-size = #2.0
    \override LyricSpace #'minimum-distance = #0.6
    \override StanzaNumber #'font-family = #'normal 
    \override StanzaNumber #'font-series = #'normal 
    \override StanzaNumber #'font-size = #2.0
    \override VerticalAxisGroup #'staff-affinity = #CENTER
    \override LyricText #'Y-offset = #-0.95
    \override LyricHyphen #'Y-offset = #-0.95
    \override StanzaNumber #'Y-offset = #-0.95
    \override LyricExtender #'Y-offset = #-0.95
    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing = #'((basic-distance . 0)
     (minimum-distance . 5.5)
     (padding . 0.5)
     (stretchability . 100))
  }
  \context { \ChordNames %% for guitar chords
    \override ChordName #'font-size = #0.5
    \override ChordName #'font-family = #'normal
    \override ChordName #'stencil = #centerCN 
    \override ChordName #'extra-offset = #'(0.75 . 0.0)
  } 
}